package com.ehi.queue.repository;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class JmsConsumer {

    private static Logger log = LoggerFactory.getLogger(JmsConsumer.class);

    @JmsListener(destination = "sample.queue")
    public void receiveQueue(String msg) {
        log.info("receive message:{}", msg);
    }
}
